Skip to content

Fix(logging): Include status code in GitHubClient logResponse - #2321

Open
vyckou wants to merge 1 commit into
hub4j:mainfrom
vyckou:github-client-finer-response-log-fix
Open

Fix(logging): Include status code in GitHubClient logResponse#2321
vyckou wants to merge 1 commit into
hub4j:mainfrom
vyckou:github-client-finer-response-log-fix

Conversation

@vyckou

@vyckou vyckou commented Sep 11, 2026

Copy link
Copy Markdown

Description

When logging is set to FINER on GitHubClient class, expected behavior should be

FINE  (2a8c) GitHub API request:  GET https://api.github.com/repos/my-org/my-repo/pulls/123
FINER (2a8c) GitHub API response: https://api.github.com/repos/my-org/my-repo/pulls/123 200

but instead we are getting

FINE  (2a8c) GitHub API request:  GET https://api.github.com/repos/my-org/my-repo/pulls/123
FINER (2a8c) GitHub API response: https://api.github.com/repos/my-org/my-repo/pulls/123

response log line silently eats up response status code

When logging is set to FINER on org.kohsuke.github.GitHubClient class, expected behavior should be
```
FINE  (2a8c) GitHub API request:  GET https://api.github.com/repos/my-org/my-repo/pulls/123
FINER (2a8c) GitHub API response: https://api.github.com/repos/my-org/my-repo/pulls/123 200
```

but instead we are getting

```
FINE  (2a8c) GitHub API request:  GET https://api.github.com/repos/my-org/my-repo/pulls/123
FINER (2a8c) GitHub API response: https://api.github.com/repos/my-org/my-repo/pulls/123
``` 

response log line silently eats up response status code
@vyckou vyckou changed the title Logline bugfix in GitHubClient.java Fix(logging): Include status code in GitHubClient logResponse Sep 11, 2026
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.41%. Comparing base (f351e37) to head (acf53ec).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2321   +/-   ##
=========================================
  Coverage     85.41%   85.41%           
  Complexity     2568     2568           
=========================================
  Files           242      242           
  Lines          7577     7577           
  Branches        399      399           
=========================================
  Hits           6472     6472           
  Misses          869      869           
  Partials        236      236           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vyckou
vyckou marked this pull request as ready for review September 11, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant